<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <input id="id" name="id" th:value="${recruitmentNews.id}" type="hidden">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">招聘机构：</label>
                            <div class="col-sm-8">
                                <select id="orgId" name="orgId" class="form-control">
                                    <option value="">请选择</option>
                                    <option th:each="item : ${orgRole}" th:selected="${recruitmentNews.orgId eq item.id}"
                                            th:value="${item.id}" th:text="${item.name}"></option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">岗位名称：</label>
                            <div class="col-sm-8">
                                <input id="name" name="name" th:value="${recruitmentNews.name}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">岗位介绍（200字）：</label>
                            <div class="col-sm-8">
                                <textarea id="introduce" style="height: 150px" maxlength="200" name="introduce" th:text="${recruitmentNews.introduce}" class="form-control"></textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">最低学历要求：</label>
                            <div class="col-sm-8">
                                <input id="educationHidden" th:value="${recruitmentNews.education}"
                                        type="hidden">
                                <select id="education" name="education" class="form-control">
                                    <option value="">请选择</option>
                                    <option value="博士后">博士后</option>
                                    <option value="博士">博士</option>
                                    <option value="研究生">研究生</option>
                                    <option value="本科">本科</option>
                                    <option value="大专">大专</option>
                                    <option value="高中">高中</option>
                                    <option value="中职/中专/职高">中职/中专/职高</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">工作经验年限范围：</label>
                            <div class="col-sm-8">
                                <input id="workExperienceHidden" th:value="${recruitmentNews.workExperience}" class="form-control"
                                       type="hidden">
                                <select name="workExperience" placeholder="请选择经验年限范围" class="form-control">
                                    <option value="">请选择</option>
                                    <option th:each="item : ${experienceList}" th:selected="${recruitmentNews.workExperience eq item.value}"  th:value="${item.value}" th:text="${item.value} "></option>
                                </select>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">招聘人数：</label>
                            <div class="col-sm-8">
                                <input id="numbers" name="numbers" th:value="${recruitmentNews.numbers}"
                                       class="form-control" type="number">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">薪资范围：</label>
                            <div class="col-sm-8">
                                <input id="salaryRangeHidden" th:value="${recruitmentNews.salaryRange}" class="form-control"
                                       type="hidden">
                                <select name="salaryRange" placeholder="请选择薪资范围" class="form-control">
                                    <option value="">请选择</option>
                                    <option th:each="item : ${listMoney}" th:selected="${recruitmentNews.salaryRange eq item.value}"  th:value="${item.value}" th:text="${item.value}"></option>
                                </select>
                            </div>
                        </div>


                        <div class="form-group">
                            <label class="col-sm-3 control-label">工作性质：</label>
                            <input id="natureHidden" th:value="${recruitmentNews.nature}" class="form-control"
                                   type="hidden">
                            <div class="col-sm-8">
                                <select name="nature" >
                                    <option value="全职">全职</option>
                                    <option value="兼职">兼职</option>
                                </select>

                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">行业所属领域：</label>
                            <div class="col-sm-8">
                                <input id="field" name="field" th:value="${recruitmentNews.field}" placeholder="请输入行业所属领域如：互联网"  class="form-control" type="text">

                            </div>
                        </div>

                        <div class="div_3" id="adre">

                            <div class="form-group">
                                <label class="col-sm-3 control-label">所属省份：</label>
                                <div class="col-sm-8">
                                    <input type="hidden" style="width: 150px"  id="province" th:value="${recruitmentNews.province}" />
                                    <select  name="province" th:value="${recruitmentNews.province}" class="form-control" type="text"></select>

                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">所属市：</label>
                                <div class="col-sm-8">
                                    <input type="hidden" style="width: 150px"  id="city" th:value="${recruitmentNews.city}" />
                                    <select  name="city" th:value="${recruitmentNews.city}" class="form-control" type="text"></select>

                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">所属县：</label>
                                <div class="col-sm-8">
                                    <input type="hidden" style="width: 150px"  id="district" th:value="${recruitmentNews.district}" />
                                    <select  name="district" th:value="${recruitmentNews.district}" class="form-control" type="text"></select>

                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">工作地点：</label>
                            <div class="col-sm-8">
                                <input id="address" name="address" th:value="${recruitmentNews.address}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">福利介绍（100字）：</label>
                            <div class="col-sm-8">
                                <textarea id="welfareInroduce" maxlength="100" style="height: 150px" name="welfareInroduce" th:text="${recruitmentNews.welfareInroduce}" class="form-control"></textarea>
                            </div>
                        </div>
<!--                        <div class="form-group">-->
<!--                            <label class="col-sm-3 control-label">优先级：</label>-->
<!--                            <div class="col-sm-8">-->
<!--                                <input id="level" name="level" th:value="${recruitmentNews.level}" class="form-control"-->
<!--                                       type="number">-->
<!--                            </div>-->
<!--                        </div>-->
                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script src="/js/jquery.citys.js"></script>
<script src="//s.xlongwei.com/res/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/js/webJs/jzweb/recruitmentNews/edit.js">
</script>
<script>
    $(function () {
        //获取用户信息
        //省市区联动
        $('#adre').citys({
            province: $("#province").val(),
            city: $("#city").val(),
            district: $("#district").val(),
            onChange: function (info) {
            }
        });
    });
</script>
</body>
</html>
